/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Trp_alumnoCriteria extends AbstractORMCriteria {
	public final StringExpression al_id_rut;
	public final StringExpression al_nombre;
	public final StringExpression al_fecha_nac;
	
	public Trp_alumnoCriteria(Criteria criteria) {
		super(criteria);
		al_id_rut = new StringExpression("al_id_rut", this);
		al_nombre = new StringExpression("al_nombre", this);
		al_fecha_nac = new StringExpression("al_fecha_nac", this);
	}
	
	public Trp_alumnoCriteria(PersistentSession session) {
		this(session.createCriteria(Trp_alumno.class));
	}
	
	public Trp_alumnoCriteria() throws PersistentException {
		this(orm.Basededatosv5PersistentManager.instance().getSession());
	}
	
	public Trp_sexoCriteria createSexo_id_codCriteria() {
		return new Trp_sexoCriteria(createCriteria("sexo_id_cod"));
	}
	
	public Trp_cursoCriteria createCursoCriteria() {
		return new Trp_cursoCriteria(createCriteria("curso"));
	}
	
	public Trp_datosCriteria createTrp_datosCriteria() {
		return new Trp_datosCriteria(createCriteria("ORM_Trp_datos"));
	}
	
	public Trp_alumno uniqueTrp_alumno() {
		return (Trp_alumno) super.uniqueResult();
	}
	
	public Trp_alumno[] listTrp_alumno() {
		java.util.List list = super.list();
		return (Trp_alumno[]) list.toArray(new Trp_alumno[list.size()]);
	}
}

